# -------------------------------------------------------------------
#       -*- coding: utf-8 -*-
#   @Project    :   spider
#   @File       :   33_代理proxier.py
#   @Author     :   WANGYU
#   @Time       :   2021-08-19 20:20:45
#   @Software   :   PyCharm
#   @Desc       :   
# -------------------------------------------------------------------


import requests


def get_html(url):
    headers = {
        'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36'
                      ' (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
    }
    proxies = {
        'https': 'https://175.147.100.26'
    }
    response = requests.get(url, verify=False, headers=headers, proxies=proxies)
    response.encoding = 'utf-8'
    return response.text


if __name__ == '__main__':
    url = 'https://www.biqushen.cc/book/26585/0.html'

    print(get_html(url))
